import request from '@/utils/request'

export function safetyCheck() {
  return request({
    url: '/system/login/safetyCheck',
    method: 'get'
  })
}

export function verifyCode(vcToken) {
  return request({
    url: '/system/login/verifyCode',
    method: 'get',
    headers: { vcToken }
  })
}

export function login(headers, data) {
  return request({
    url: '/system/login/login',
    method: 'post',
    headers,
    data: data
  })
}

export function info(headers) {
  return request({
    url: '/system/login/info',
    method: 'get',
    headers
  })
}

export function logout(headers) {
  return request({
    url: '/system/login/logout',
    method: 'post',
    headers
  })
}
